Remove arch_alloc_domain_struct/arch_free_domain_struct.
Signed-off-by: Keir Fraser <keir@xensource.com>
continue_cpu_idle_loop();
}
-struct domain *arch_alloc_domain_struct(void)
-{
- return xmalloc(struct domain);
-}
-
-void arch_free_domain_struct(struct domain *d)
-{
- xfree(d);
-}
-
struct exec_domain *arch_alloc_exec_domain_struct(void)
{
/* Per-vp stack is used here. So we need keep exec_domain
page->u.inuse.type_info);
}
-struct domain *arch_alloc_domain_struct(void)
-{
- return xmalloc(struct domain);
-}
-
-void arch_free_domain_struct(struct domain *d)
-{
- xfree(d);
-}
-
struct exec_domain *arch_alloc_exec_domain_struct(void)
{
return xmalloc(struct exec_domain);
if ( d->exec_domain[i] )
arch_free_exec_domain_struct(d->exec_domain[i]);
- arch_free_domain_struct(d);
+ xfree(d);
}
struct exec_domain *alloc_exec_domain_struct(struct domain *d,
{
struct domain *d;
- if ( (d = arch_alloc_domain_struct()) == NULL )
+ if ( (d = xmalloc(struct domain)) == NULL )
return NULL;
memset(d, 0, sizeof(*d));
return d;
out:
- arch_free_domain_struct(d);
+ xfree(d);
return NULL;
}
* Arch-specifics.
*/
-extern struct domain *arch_alloc_domain_struct(void);
-
-extern void arch_free_domain_struct(struct domain *d);
-
struct exec_domain *arch_alloc_exec_domain_struct(void);
extern void arch_free_exec_domain_struct(struct exec_domain *ed);